package com.xiaojun.whut.Repository;

import com.xiaojun.whut.Entity.CardMessage;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CardMessageRepository extends JpaRepository<CardMessage,String> {
    CardMessage findByPhoneNumber(String phoneNumber);

    CardMessage findById(int id);

    List<CardMessage> findAllByLabelOrderByCreateTimeDesc(String label);

    List<CardMessage> findAllByLabelOrderByLikeNumDesc(String label);

}
